/*
 * 文件名：SamplingDataExeclVO.java
 * 版权：Copyright by www.tiansu-china.com/
 * 描述：
 * 修改人：congriran
 * 修改时间：2020年11月30日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
*/
 
package com.tiansu.reborn.wanda.modules.executor.entity.vo;

import java.io.Serializable;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.tiansu.reborn.wanda.modules.executor.entity.SamplingDataEntity;

import lombok.Data;

@Data
public class SamplingDataExeclVO implements Serializable
{
    
    private static final long serialVersionUID = -8396841030805162089L;

    @ColumnWidth(20)
    @ExcelProperty(value = "timeId", index = 0)
    private String timeId;
    
    @ColumnWidth(14)
    @ExcelProperty(value = "当前总电能", index = 1)
    private Float sum;
    
    @ColumnWidth(14)
    @ExcelProperty(value = "当前尖电能", index = 2)
    private Float tip;
    
    @ColumnWidth(14)
    @ExcelProperty(value = "当前峰电能", index = 3)
    private Float peak;
    
    @ColumnWidth(14)
    @ExcelProperty(value = "当前平电能", index = 4)
    private Float flat;
    
    @ColumnWidth(14)
    @ExcelProperty(value = "当前谷电能", index = 5)
    private Float valley;
    
    public SamplingDataExeclVO(SamplingDataEntity entity)
    {
        this.timeId = entity.getTimestr();
        this.sum = entity.getSum();
        this.tip = entity.getTip();
        this.peak = entity.getPeak();
        this.flat = entity.getFlat();
        this.valley = entity.getValley();
    }
}
